#coding=utf-8

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
options = webdriver.FirefoxOptions()
# options.add_argument('-headless')
driver = webdriver.Firefox(options=options)
driver.get("http://www.baidu.com")

driver.switch_to_frame()